﻿namespace RaGE
{
    public class Category
    {
        public byte[] name; // 128 Byte Unicode
        public int sub_cats_count;
        public byte[][] sub_cats; // Array [max 8] of 128 Byte Unicode
    }

    public class SaleOption
    {
        public uint price;
        public uint expire_date;
        public uint duration;
        public uint start_date;
        public int control_type;
        public uint day;
        public uint status;
        public uint flags;
    }

    public class Item
    {
        // for internal DB usage
        // if true the item will be exported to server file
        public bool activate;

        public int shop_id;
        public int cat_index;
        public int sub_cat_index;

        public byte[] surface_path; // 128 Byte GBK

        public int item_id;
        public int item_amount;

        public SaleOption[] sale_options; // length = 4

        public byte[] description; // 1024 Byte Unicode
        public byte[] name; // 64 Byte Unicode

        public int gift_id;
        public int gift_amount;
        public int gift_duration;
        public int log_price;
    }

    public class Boutique
    {
        public int timestamp;
        public int item_count;
        public Item[] items;
        public Category[] categories; // [8]
    }
}
